package com.ruoyi.student.repository;

import com.ruoyi.student.domain.StuStudent;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.neo4j.repository.query.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface StudentRepository extends Neo4jRepository<StuStudent, Long> {
    @Query("CREATE(s:Student {studentname: $studentname})")
    void addStudent(@Param("studentname") String studentname);
}
